﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F51 RID: 3921
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicQueryScRsp : IMessage<RogueMagicQueryScRsp>, IMessage, IEquatable<RogueMagicQueryScRsp>, IDeepCloneable<RogueMagicQueryScRsp>, IBufferMessage
	{
		// Token: 0x170031CA RID: 12746
		// (get) Token: 0x0600AFD5 RID: 45013 RVA: 0x001DBC4B File Offset: 0x001D9E4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicQueryScRsp> Parser
		{
			get
			{
				return RogueMagicQueryScRsp._parser;
			}
		}

		// Token: 0x170031CB RID: 12747
		// (get) Token: 0x0600AFD6 RID: 45014 RVA: 0x001DBC52 File Offset: 0x001D9E52
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicQueryScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170031CC RID: 12748
		// (get) Token: 0x0600AFD7 RID: 45015 RVA: 0x001DBC64 File Offset: 0x001D9E64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicQueryScRsp.Descriptor;
			}
		}

		// Token: 0x0600AFD8 RID: 45016 RVA: 0x001DBC6B File Offset: 0x001D9E6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicQueryScRsp()
		{
		}

		// Token: 0x0600AFD9 RID: 45017 RVA: 0x001DBC74 File Offset: 0x001D9E74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicQueryScRsp(RogueMagicQueryScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.rogueGetInfo_ = ((other.rogueGetInfo_ != null) ? other.rogueGetInfo_.Clone() : null);
			this.rogueTournCurInfo_ = ((other.rogueTournCurInfo_ != null) ? other.rogueTournCurInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AFDA RID: 45018 RVA: 0x001DBCDC File Offset: 0x001D9EDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicQueryScRsp Clone()
		{
			return new RogueMagicQueryScRsp(this);
		}

		// Token: 0x170031CD RID: 12749
		// (get) Token: 0x0600AFDB RID: 45019 RVA: 0x001DBCE4 File Offset: 0x001D9EE4
		// (set) Token: 0x0600AFDC RID: 45020 RVA: 0x001DBCEC File Offset: 0x001D9EEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170031CE RID: 12750
		// (get) Token: 0x0600AFDD RID: 45021 RVA: 0x001DBCF5 File Offset: 0x001D9EF5
		// (set) Token: 0x0600AFDE RID: 45022 RVA: 0x001DBCFD File Offset: 0x001D9EFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGetInfo RogueGetInfo
		{
			get
			{
				return this.rogueGetInfo_;
			}
			set
			{
				this.rogueGetInfo_ = value;
			}
		}

		// Token: 0x170031CF RID: 12751
		// (get) Token: 0x0600AFDF RID: 45023 RVA: 0x001DBD06 File Offset: 0x001D9F06
		// (set) Token: 0x0600AFE0 RID: 45024 RVA: 0x001DBD0E File Offset: 0x001D9F0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicCurInfo RogueTournCurInfo
		{
			get
			{
				return this.rogueTournCurInfo_;
			}
			set
			{
				this.rogueTournCurInfo_ = value;
			}
		}

		// Token: 0x0600AFE1 RID: 45025 RVA: 0x001DBD17 File Offset: 0x001D9F17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicQueryScRsp);
		}

		// Token: 0x0600AFE2 RID: 45026 RVA: 0x001DBD28 File Offset: 0x001D9F28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicQueryScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.RogueGetInfo, other.RogueGetInfo) && object.Equals(this.RogueTournCurInfo, other.RogueTournCurInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AFE3 RID: 45027 RVA: 0x001DBD8C File Offset: 0x001D9F8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueGetInfo_ != null)
			{
				num ^= this.RogueGetInfo.GetHashCode();
			}
			if (this.rogueTournCurInfo_ != null)
			{
				num ^= this.RogueTournCurInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AFE4 RID: 45028 RVA: 0x001DBDF7 File Offset: 0x001D9FF7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AFE5 RID: 45029 RVA: 0x001DBDFF File Offset: 0x001D9FFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AFE6 RID: 45030 RVA: 0x001DBE08 File Offset: 0x001DA008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueGetInfo_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.RogueGetInfo);
			}
			if (this.rogueTournCurInfo_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.RogueTournCurInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AFE7 RID: 45031 RVA: 0x001DBE80 File Offset: 0x001DA080
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueGetInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueGetInfo);
			}
			if (this.rogueTournCurInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueTournCurInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AFE8 RID: 45032 RVA: 0x001DBEF0 File Offset: 0x001DA0F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicQueryScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueGetInfo_ != null)
			{
				if (this.rogueGetInfo_ == null)
				{
					this.RogueGetInfo = new RogueMagicGetInfo();
				}
				this.RogueGetInfo.MergeFrom(other.RogueGetInfo);
			}
			if (other.rogueTournCurInfo_ != null)
			{
				if (this.rogueTournCurInfo_ == null)
				{
					this.RogueTournCurInfo = new RogueMagicCurInfo();
				}
				this.RogueTournCurInfo.MergeFrom(other.RogueTournCurInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AFE9 RID: 45033 RVA: 0x001DBF84 File Offset: 0x001DA184
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AFEA RID: 45034 RVA: 0x001DBF90 File Offset: 0x001DA190
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					if (num != 58U)
					{
						if (num != 104U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						if (this.rogueTournCurInfo_ == null)
						{
							this.RogueTournCurInfo = new RogueMagicCurInfo();
						}
						input.ReadMessage(this.RogueTournCurInfo);
					}
				}
				else
				{
					if (this.rogueGetInfo_ == null)
					{
						this.RogueGetInfo = new RogueMagicGetInfo();
					}
					input.ReadMessage(this.RogueGetInfo);
				}
			}
		}

		// Token: 0x0400474A RID: 18250
		private static readonly MessageParser<RogueMagicQueryScRsp> _parser = new MessageParser<RogueMagicQueryScRsp>(() => new RogueMagicQueryScRsp());

		// Token: 0x0400474B RID: 18251
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400474C RID: 18252
		public const int RetcodeFieldNumber = 13;

		// Token: 0x0400474D RID: 18253
		private uint retcode_;

		// Token: 0x0400474E RID: 18254
		public const int RogueGetInfoFieldNumber = 6;

		// Token: 0x0400474F RID: 18255
		private RogueMagicGetInfo rogueGetInfo_;

		// Token: 0x04004750 RID: 18256
		public const int RogueTournCurInfoFieldNumber = 7;

		// Token: 0x04004751 RID: 18257
		private RogueMagicCurInfo rogueTournCurInfo_;
	}
}
